<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="dao.UserDao,java.util.*,pojo.User"%>
<%@page import="factory.UserFactory"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>浏览全体用户信息</title>
<link rel="stylesheet" type="text/css" href="${ pageContext.request.contextPath }/resources/css/bootstrap.min.css">
<script src="${ pageContext.request.contextPath }/resources/js/jquery-3.2.1.js"></script>
</head>
<body>
<%@include file="top.jsp" %>
<div id="loginbox" style="width: 100%;">
<div class="control-group normal_text" style="height: 300px;">
<div class="well-lg">
	<table class="table">
	<thead>
		<tr>
			<td>用户名</td>
			<td>电话</td>
			<td>邮箱</td>
			<td>交友简介</td>
			<td>照片</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${requestScope.users}" var="list" varStatus="status">
		<tr <c:if test="${status.index%2==1}">style="background-color: RGB(224,236,255)"</c:if>>
			<td>${list.uname}</td>
			<td>${list.uphone}</td>
			<td>${list.uemail}</td>
			<td>${list.umessage}</td>
			<td><img width="70px" src="<%= request.getContextPath()+"/images/" %>${list.upic}"></td>
		</tr>
		</c:forEach>
	</tbody>
	</table>
</div>
</div>

<div class="control-group normal_text" style="height: 100px;margin-top: 10px;">
<!--分页控件-->
<div  class="c-pages">
    <span class="cp-item">
        <span>共</span>
        <span id="cp-count">0</span>
        <span>条</span>
    </span>
    <span class="cp-item">
        <span id="curr-page">1</span>
        <span>/</span>
        <span id="total-page">1</span>
    </span>
    <span class="cp-item">
        <button class="btn btn-info" id="home">首页</button>
        <button class="btn btn-primary" id="prev">上页</button>
        <button class="btn btn-primary" id="next">下页</button>
        <button class="btn btn-info" id="last">尾页</button>
    </span>
    <span class="cp-item">
        <input style="margin-top: 8px;height: 20px;line-height: 20px;" type="number" id="goToPage" />
        <span>页</span>
        <button class="btn btn-danger" id="goTo">转到</button>
    </span>
</div>
</div>
</div>
<%@include file="bottom.jsp" %>
<script src="${ pageContext.request.contextPath }/resources/js/spPage.js"></script>
</body>
</html>